package com.snopy.designPattern.command.impl;

import lombok.extern.slf4j.Slf4j;

/**
 * @author snopy
 * @version 1.0.0
 * @classname Stock
 * @description
 * @email 77912204@qq.com
 * @date 2022/03/04 14:51
 */
@Slf4j
public class Stock {
    private String name = "ABC";
    private int quanity = 10;
    public void buy(){
      log.info("Stock[name:{},Quantity:{}] bought",name,quanity);
    }
    public void sell(){
        log.info("Stock[name:{},Quantity:{}]sold",name,quanity);
    }
}
